/*
 * NoScrollRecycleView.java
 * business
 *
 * Created by ChenTao on 2017/2/21.
 *
 * Copyright (c) 2017年 yidiandao. All rights reserved.
 */

package com.yidiandao.business.ui.widget.view;

import android.content.Context;
import android.support.v7.widget.RecyclerView;
import android.util.AttributeSet;
import android.view.MotionEvent;

/** 无滑动的recycleView */
public class NoScrollRecycleView extends RecyclerView {

    public NoScrollRecycleView(Context context, AttributeSet attrs) {
        super(context, attrs);
    }

    public NoScrollRecycleView(Context context) {
        super(context);
    }

    /** 事件不处理触摸事件，返回false */
    @Override
    public boolean onTouchEvent(MotionEvent ev) {
        return false;
    }

    /** false：不拦截儿子的触摸事件 */
    @Override
    public boolean onInterceptTouchEvent(MotionEvent ev) {
        return false;
    }
}
